package com.ruoyi.labsafety.mapper;

import java.util.List;
import com.ruoyi.labsafety.domain.LabSafetyCheckRelIndexItem;
import org.apache.ibatis.annotations.Param;

/**
 * 安检检查指标项Mapper接口
 * 
 * @author ruoyi
 * @date 2022-03-31
 */
public interface LabSafetyCheckRelIndexItemMapper 
{
    /**
     * 查询安检检查指标项
     * 
     * @param id 安检检查指标项ID
     * @return 安检检查指标项
     */
    public LabSafetyCheckRelIndexItem selectLabSafetyCheckRelIndexItemById(Long id);

    /**
     * 查询安检检查指标项列表
     * 
     * @param labSafetyCheckRelIndexItem 安检检查指标项
     * @return 安检检查指标项集合
     */
    public List<LabSafetyCheckRelIndexItem> selectLabSafetyCheckRelIndexItemList(LabSafetyCheckRelIndexItem labSafetyCheckRelIndexItem);

    /**
     * 新增安检检查指标项
     * 
     * @param labSafetyCheckRelIndexItem 安检检查指标项
     * @return 结果
     */
    public int insertLabSafetyCheckRelIndexItem(LabSafetyCheckRelIndexItem labSafetyCheckRelIndexItem);

    /**
     * 修改安检检查指标项
     * 
     * @param labSafetyCheckRelIndexItem 安检检查指标项
     * @return 结果
     */
    public int updateLabSafetyCheckRelIndexItem(LabSafetyCheckRelIndexItem labSafetyCheckRelIndexItem);

    /**
     * 删除安检检查指标项
     * 
     * @param id 安检检查指标项ID
     * @return 结果
     */
    public int deleteLabSafetyCheckRelIndexItemById(Long id);

    /**
     * 批量删除安检检查指标项
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteLabSafetyCheckRelIndexItemByIds(Long[] ids);

    /**
     * 批量删除安检检查指标项
     *
     * @param instanceId 需要删除的安检ID
     * @return 结果
     */
    int deleteLabSafetyCheckRelIndexItemByInstanceId(Long instanceId);

    int insertLabSafetyCheckRelIndexItemByIndexId(@Param("instanceId") Long instanceId, @Param("indexIds") Long[] indexIds);

    int updateLabSafetyCheckRelIndexItemStatus(@Param("id") Long id, @Param("status") int status);
}
